<?php
/**
 * Created by PhpStorm.
 * User: yzr
 * Date: 1/31/2021
 * Time: 14:10
 */
namespace app\api\controller\wap;

use app\common\model\users\AccountLevelLimit;
use mall\utils\Tool;
use think\facade\Request;

class Banner extends Base
{

    /**
     * 首页 banner
     */
    public function index()
    {
        $host = strtr(Request::domain(),['proxy.'=> '']);
        $list = [
            $host .'/static/images/banner.png',
            $host .'/static/images/banner1.png',
            $host .'/static/images/banner3.png',
        ];

//        $list = array_map(function($filename){
//            return Tool::url($filename);
//        },$list);
        $list = [
            'list'  => $list,
        ];
        return $this->returnAjax("ok",1,$list);
    }
}
